from random import randint


class SourceDataDemo:

    @property
    def wordcloud(self):
        data = [
            {"name": "6枚总冠军", "value": 47},
            {"name": "6xFMVPs", "value": 52},
            {"name": "10届得分王", "value": 60},
            {"name": "5xMVPs", "value": 70},
            {"name": "10次一阵", "value": 45},
            {"name": "9次一防", "value": 37},
            {"name": "大满贯", "value": 2},
            {"name": "G.O.A.T", "value": 32},
            {"name": "篮球之神", "value": 3},
            {"name": "Air Jordan", "value": 20},
        ]
        return data

    @property
    def line(self):
        data = {
            '得分': [28.2, 22.7, 37.1, 35.0, 32.5, 33.6, 31.5, 30.1, 32.6, 26.9, 30.4, 29.6, 28.7, 22.9, 20.0],
            '篮板': [6.5, 3.6, 5.2, 5.5, 8.0, 6.9, 6.0, 6.4, 6.7, 6.9, 6.6, 5.9, 5.8, 5.7, 6.1],
            '助攻': [5.9, 2.9, 4.6, 5.9, 8.0, 6.3, 5.5, 6.1, 5.5, 5.3, 4.3, 4.3, 3.5, 5.2, 3.8],
            'legend': ['84-85', '85-86', '86-87', '87-88', '88-89', '89-90', '90-91', '91-92', '92-93', '94-95', '95-96', '96-97', '97-98', '01-02', '02-03']
        }
        return data

    @property
    def bar(self):
        data = {
            '得分': [28.2, 22.7, 37.1, 35.0, 32.5, 33.6, 31.5, 30.1, 32.6, 26.9, 30.4, 29.6, 28.7, 22.9, 20.0],
            '篮板': [6.5, 3.6, 5.2, 5.5, 8.0, 6.9, 6.0, 6.4, 6.7, 6.9, 6.6, 5.9, 5.8, 5.7, 6.1],
            '助攻': [5.9, 2.9, 4.6, 5.9, 8.0, 6.3, 5.5, 6.1, 5.5, 5.3, 4.3, 4.3, 3.5, 5.2, 3.8],
            'legend': ['84-85', '85-86', '86-87', '87-88', '88-89', '89-90', '90-91', '91-92', '92-93', '94-95', '95-96', '96-97', '97-98', '01-02', '02-03']
        }
        return data


class SourceData(SourceDataDemo):
    ...
